import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/home',
		name: 'Home',
		component: Home,
		children: [{
				path: '/about',
				name: 'About',
				component: () => import( /* webpackChunkName: "about" */ '../views/About.vue')
			},
			{
				path: '/cash',
				name: 'Cash',
				component: () => import('../components/patient/Cash.vue')
			},
			{
				path: '/print',
				name: 'Print',
				component: () => import('../components/patient/Print.vue')
			},
			{
				path: '/print_record',
				name: 'PrintRecord',
				component: () => import('../components/patient/PrintRecord.vue')
			},
			{
				path: '/cash_record',
				name: 'CashRecord',
				component: () => import('../components/patient/CashRecord.vue')
			},
			{
				path: '/drug_repercussion',
				name: 'DrugRepercussion',
				component: () => import('../components/patient/DrugRepercussion.vue')
			},
			{
				path: '/registration',
				name: 'Registration',
				component: () => import('../components/patient/Registration.vue')
			},
			{
				path: '/withdraw_registration',
				name: 'WithdrawRegistration',
				component: () => import('../components/patient/WithdrawRegistration.vue')
			},
			{
				path: '/diagnostic_results',
				name: 'DiagnosticResults',
				component: () => import('../components/patient/DiagnosticResults.vue')
			},
			{
				path: '/print_results',
				name: 'PrintResults',
				component: () => import('../components/patient/PrintResults.vue')
			},
			{
				path: '/diagnostic_records',
				name: 'DiagnosticRecords',
				component: () => import('../components/patient/DiagnosticRecords.vue')
			},
			{
				path: '/registration_list',
				name: 'RegistrationList',
				component: () => import('../components/doctor/RegistrationList.vue')
			},
			{
				path: '/cases',
				name: 'Cases',
				component: () => import('../components/doctor/Cases.vue')
			},
			{
				path: '/patient_information',
				name: 'PatientInformation',
				component: () => import('../components/doctor/PatientInformation.vue')
			},
			{
				path: '/disposal',
				name: 'Disposal',
				component: () => import('../components/doctor/Disposal.vue')
			},
			{
				path: '/diagnostic_results2',
				name: 'DiagnosticResults',
				component: () => import('../components/doctor/DiagnosticResults.vue')
			},
			{
				path: '/prescription',
				name: 'Prescription',
				component: () => import('../components/doctor/Prescription.vue')
			},
			{
				path: '/await',
				name: 'Await',
				component: () => import('../components/technology/Await.vue')
			},
			{
				path: '/record',
				name: 'Record',
				component: () => import('../components/technology/Record.vue')
			},
			{
				path: '/input',
				name: 'Input',
				component: () => import('../components/technology/Input.vue')
			},
			{
				path: '/department_admin',
				name: 'DepartmentAdmin',
				component: () => import('../components/admin/DepartmentAdmin.vue')
			},
			// {
			// 	path: '/scheduling_admin',
			// 	name: 'SchedulingAdmin',
			// 	component: () => import('../components/admin/SchedulingAdmin.vue')
			// },
			{
				path: '/scheduling_admin2',
				name: 'SchedulingAdmin2',
				component: () => import('../components/admin/SchedulingAdmin2.vue')
			},
			{
				path: '/user_admin',
				name: 'UserAdmin',
				component: () => import('../components/admin/UserAdmin.vue')
			},
			{
				path: '/medicine_admin',
				name: 'MedicineAdmin',
				component: () => import('../components/admin/MedicineAdmin.vue')
			}
		]
	},
	{
		path: '/about',
		name: 'About',
		component: () => import('../views/About.vue')
	},
	{
		path: '/drug_manager',
		name: 'DrugManager',
		component: () => import('../components/neupha/DrugManager.vue')
	},
	{
		path: '/',
		name: 'Login',
		component: () => import('../Login.vue')
	},
	{
		path: '/cash',
		name: 'Cash',
		component: () => import('../components/patient/Cash.vue')
	},
	{
		path: '/print',
		name: 'Print',
		component: () => import('../components/patient/Print.vue')
	},
	{
		path: '/print_record',
		name: 'PrintRecord',
		component: () => import('../components/patient/PrintRecord.vue')
	},
	{
		path: '/cash_record',
		name: 'CashRecord',
		component: () => import('../components/patient/CashRecord.vue')
	},
	{
		path: '/drug_repercussion',
		name: 'DrugRepercussion',
		component: () => import('../components/patient/DrugRepercussion.vue')
	},
	{
		path: '/registration',
		name: 'Registration',
		component: () => import('../components/patient/Registration.vue')
	},
	{
		path: '/withdraw_registration',
		name: 'WithdrawRegistration',
		component: () => import('../components/patient/WithdrawRegistration.vue')
	},
	{
		path: '/help',
		name: 'Help',
		component: () => import('../components/patient/Help.vue')
	},
	{
		path: '/diagnostic_results',
		name: 'DiagnosticResults',
		component: () => import('../components/patient/DiagnosticResults.vue')
	},
	{
		path: '/print_results',
		name: 'PrintResults',
		component: () => import('../components/patient/PrintResults.vue')
	},
	{
		path: '/diagnostic_records',
		name: 'DiagnosticRecords',
		component: () => import('../components/patient/DiagnosticRecords.vue')
	},
	{
		path: '/change_password',
		name: 'ChangePassword',
		component: () => import('../components/patient/account_management/ChangePassword.vue')
	},
	{
		path: '/enroll',
		name: 'Enroll',
		component: () => import('../components/patient/account_management/Enroll.vue')
	},
	{
		path: '/reset_password',
		name: 'ResetPassword',
		component: () => import('../components/patient/account_management/ResetPassword.vue')
	},
	{
		path: '/retrieve_password',
		name: 'RetrievePassword',
		component: () => import('../components/patient/account_management/RetrievePassword.vue')
	},
	{
		path: '/registration_list',
		name: 'RegistrationList',
		component: () => import('../components/doctor/RegistrationList.vue')
	},
	{
		path: '/cases',
		name: 'Cases',
		component: () => import('../components/doctor/Cases.vue')
	},
	{
		path: '/patient_information',
		name: 'PatientInformation',
		component: () => import('../components/doctor/PatientInformation.vue')
	},
	{
		path: '/disposal',
		name: 'Disposal',
		component: () => import('../components/doctor/Disposal.vue')
	},
	{
		path: '/diagnostic_results',
		name: 'DiagnosticResults',
		component: () => import('../components/doctor/DiagnosticResults.vue')
	},
	{
		path: '/prescription',
		name: 'Prescription',
		component: () => import('../components/doctor/Prescription.vue')
	},
	{
		path: '/await',
		name: 'Await',
		component: () => import('../components/technology/Await.vue')
	},
	{
		path: '/record',
		name: 'Record',
		component: () => import('../components/technology/Record.vue')
	},
	{
		path: '/input',
		name: 'Input',
		component: () => import('../components/technology/Input.vue')
	},
	{
		path: '/department_admin',
		name: 'DepartmentAdmin',
		component: () => import('../components/admin/DepartmentAdmin.vue')
	},
	{
		path: '/scheduling_admin',
		name: 'SchedulingAdmin',
		component: () => import('../components/admin/SchedulingAdmin.vue')
	},
	{
		path: '/scheduling_admin2',
		name: 'SchedulingAdmin2',
		component: () => import('../components/admin/SchedulingAdmin2.vue')
	},
	{
		path: '/user_admin',
		name: 'UserAdmin',
		component: () => import('../components/admin/UserAdmin.vue')
	}
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router
